package fy.hr.dao;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class RequestNoTimerTask {
	public static int requestNo;
	
	@Scheduled(cron = "0 0 0 ? * *")// 每天凌晨执行一次重置序列号
	public void resetNo() throws Exception {
		requestNo = 0;
	}
}
